package com.zdya.combatdocuments.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zdya.combatdocuments.entity.Broadcast;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * * @author: bj
 * * @date: 2023/6/14
 * * @desc:
 */
@Mapper
public interface BroadcastMapper  extends BaseMapper<Broadcast> {

    @Select("select id, content, net_id, user_id, create_date from broadcast where Id > 0 order by create_date desc")
    List<Broadcast> findAll();
}
